package com.miplus.ccrm.common;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class ESCR<T> implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 请求头
     */
    @JsonProperty("Head")
    private T head;

    /**
     * Body
     */
    @JsonProperty("Body")
    private T body;


    public static <T> ESCR<T> SuccessBody(T d)
    {
        ESCR<T> result=new ESCR<>();
        result.setBody(d);
        return result;
    }

}